/**
 * 
 */
package com.aihwcm.service;

import java.util.List;

import com.aihwcm.entity.Aihdocuments;
import com.aihwcm.entity.Aihusers;

/**
 * @author francisli
 *
 */
public interface DocumentManageService {

	public void adddoc(Aihdocuments doc);

	public int count(int channelid, Aihusers user);

	public List<Aihdocuments> listpage(int channelid, int offset, int limit,
			Aihusers user);

	public Aihdocuments editdoc(Integer id);

	public void deldoc(Integer id);

	public int count(String docstate);

	public List<Aihdocuments> listpage(int offset, int limit, String docstate);

	public boolean find(String property, String value);
	
	public int count(int channelid, Aihusers user, String search);
	public List<Aihdocuments> listpage(int channelid, int offset, int limit,
			Aihusers user, String search);
	public int count(String docstate, String search);
	public List<Aihdocuments> listpage(int offset, int limit, String docstate, String search);
}
